package com.cgc.service.impl;

import java.util.List;

import com.cgc.dao.IBaseDao;
import com.cgc.service.BaseService;

public class BaseServiceImpl<T> implements BaseService<T> {

	public IBaseDao<T> basedao;
	
	
	@Override
	public void add(T t) {
		basedao.add(t);
	}


	public IBaseDao<T> getBasedao() {
		return basedao;
	}


	public void setBasedao(IBaseDao<T> basedao) {
		this.basedao = basedao;
	}


	@Override
	public List<T> getListByPage(T t1,int firstResult, int maxResult) {
		// TODO Auto-generated method stub
		return basedao.getListByPage(t1,firstResult, maxResult);
	}


	@Override
	public long getCount(T t1) {
		// TODO Auto-generated method stub
		return basedao.getCount(t1);
	}


	@Override
	public void delete(Integer id) {
		basedao.delete(id);
	}


	@Override
	public T get(Integer id) {
		return basedao.get(id);
	}


	@Override
	public void update(T t) {
		basedao.update(t);
	}


	@Override
	public List<T> list(T t1) {
		// TODO Auto-generated method stub
		return basedao.getList(t1);
	}
	
	

}
